package flyweight;

/**
 * TreeType 是享元对象
 * 该类所有成员都是所有 Tree 共享的，都属于 “内在状态”
 */
public class TreeType {
    private String type;
    private String color;
    private String texture;

    public TreeType(String type, String color, String texture) {
        this.type = type;
        this.color = color;
        this.texture = texture;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getTexture() {
        return texture;
    }

    public void setTexture(String texture) {
        this.texture = texture;
    }
}
